package com.shadow.dataentities.userdata
{
	/**
	 *用户信息实体 
	 * @author Administrator
	 * 
	 */	
	public class UserInfoEntity
	{
		public var id:uint;
		public var npc_attack_info_id:int;
		public var town_name:String;
		public var town_flag_id:int;
		public var bgm_info:String;
		public function UserInfoEntity(data:Object)
		{
			if(data==null){
				return;
			}
			update(data);
		}
		/**
		 *更新字段 
		 * @param data
		 * 
		 */		
		public function update(data:Object):void
		{
			var key:String;
			for (key in data)
			{
				if (hasOwnProperty(key))
				{
					if (this[key] != data[key])
					{
						this[key] = data[key];
					}
				}
			}
		}
	}
}